package com.demo;

import lombok.extern.slf4j.Slf4j;
import org.noear.solon.SolonBuilder;
import org.noear.solon.extend.cron4j.EnableCron4j;

@Slf4j
@EnableCron4j
public class Application {


    public static void main(String[] args) {    //这是程序入口
        new SolonBuilder()
                .onError(e -> {
                    log.error("", e);
                })
                .start(Application.class, args, (app) -> {
                    //启用 WebSocket 服务
                    app.enableWebSocket(true);
                });
    }


}
